package com.baixun.gassystem.service;

import com.baixun.gasentity.entity.SysDepartmentRoles;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: 上海燃气驾驶舱
 * @description: 角色表权限业务层
 * @author: yesong
 **/
public interface SysDepartmentRoleService extends IService<SysDepartmentRoles> {
    List<SysDepartmentRoles> getAllRoles();
    SysDepartmentRoles getRoleByName(String name);
    void createRole(SysDepartmentRoles role);
    void updateRole(SysDepartmentRoles role);
    void deleteRole(Long id);
    void assignPermissions(Long roleId, List<Long> permissionIds);
}
